<?php
include_once 'core/Install.php';
if(!defined('ROOT')) {
    define('ROOT',str_replace('\\', '/',__DIR__).'/');
}
//简单路由引导
$method = empty($_GET['operation']) ? 'index' : $_GET['operation'];
$obj = new Install();
try {
    if(method_exists($obj,$method)){
        call_user_func([$obj,$method]);
    } else {
        throw new Exception("非法参数", 1);
    }
} catch(Exception $e) {
    exit($e->getMessage());
}